{include file="public/account_head"}
<div>
    <div class="pub_wid notice_cont"  id="logistics_index" v-if="show">
        <div class="mes_left rg">
            <div class="message bgb widthauto radius">
                <h6>账户信息
<!--                    <a href="#">修改</a>-->
                </h6>
                <dl class="widthauto">
                    <dt><img src="/static/index/public/images/headimage.jpg" /></dt>
                    <br />
                    <dd><span>用户类型：</span>
                        <!--<em>货主企业</em>--><!--<b><img src="../../images/vip.png" /><font>VIP</font>物流企业<i>到期时间：2022年04月01日</i></b>-->
                        <i class="pt">货主企业</i></dd>
                    <dd><span>绑定手机：</span>{{member.phone}}</dd>
                </dl>
            </div>
            <div class="message bgb widthauto radius">
                <h6>公司认证信息<a href="/index/consignor/edit">修改</a></h6>
                <div class="logo widthauto"><span>公司LOGO：</span> <img style="width: 160px;height: 80px" :src="memberInfo.logo" /></div>
                <div class="ent_de_box widthauto">
                    <ul class="ulb">
                        <li><span>公司名称：</span>{{memberInfo.name}}</li>
                        <li><span>所&nbsp;在&nbsp;地：</span>{{memberInfo.address}}</li>
                        <li><span>详细地址：</span>{{memberInfo.home_address}}</li>
                        <li><span>注册时间：</span>{{memberInfo.company_time}}</li>
                        <li><span>注册资本：</span>{{memberInfo.fund}}</li>
                        <li><span>官方网址：</span>{{memberInfo.website_url}}</li>
                        <li><span>公司简介：</span></li>
                    </ul>
                    <ul class="ulb">
                        <li><span>联&nbsp;系&nbsp;人：</span>{{memberInfo.contacts}}</li>
                        <li><span>职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;位：</span>{{memberInfo.position}}</li>
                        <li><span>手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机：</span>{{memberInfo.mobile}}</li>
                        <li><span>固定电话：</span>{{memberInfo.landine_phone}}</li>
                        <li><span>邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱：</span>{{memberInfo.email}}</li>
                        <li><span>微&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;信：</span>{{memberInfo.wechat}}</li>
                    </ul>
                    <ul class="ulc bot_line">
                        <li>
                            {{memberInfo.company_info}}
                        </li>
                    </ul>
                </div>
                <div class="ent_de_box widthauto">
                    <ul class="ula">
                        <!--                        <li><span>服务类型：</span><a >运输服务</a><a >仓储服务</a></li>-->
                        <!--                        <li><span>自有运力：</span>{{supplement.self_car}}<span><em>&nbsp;</em>外协车辆：</span>{{supplement.subordinate_car}}</li>-->
                        <!--                        <li><span>挂靠情况：自购占比：</span>{{supplement.self_buying}}<span><em>&nbsp;</em>挂靠占比：</span>{{supplement.subordinate_buying}}</li>-->
                        <!--                        <li><span>长跑路线：</span>{{supplement.line}}</li>-->
                        <!--                        <li><span>资质概况：</span><a>{{supplement.certification}}</a></li>-->
                        <!--                        <li><span>客户案例：</span></li>-->
                        <li><span>所属行业：</span>{{supplement.trade_name}}</li>
                        <li><span>预算金额：</span>{{supplement.budget}}万/年</li>
                        <li><span>发&nbsp;货&nbsp;量：</span>{{supplement.shipment}}万吨</li>
                        <li><span>主要线路：</span>{{supplement.line}}</li>
                        <li><span>服务要求：</span></li>
                    </ul>
                    <ul class="ulc">
                        <li>{{supplement.service_content}}</li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="lf two_left">
            <div class="about_nav">
                <ul class="widthauto">
                    <li><a href="#" class="down" >账户中心</a></li>
                    <p class="widthauto">
                        <a href="/index/consignor/index" class="cur">我的信息</a>
                        <a href="/index/consignor/reset" >修改密码</a>
                    </p>
                    <li>
                        <a href="/index/consignor/facilitator" >运力服务商</a>
                    </li>
                    <li>
                        <a href="/index/consignor/noticeList">我的发布</a>
                    </li>
                </ul>
            </div>
            <div class="add_box">
                <a :href="advertisingEight.link_url">
                    <img :src="advertisingEight.image_url" />
                </a>
            </div>
        </div>
    </div>
    {include file="public/footer"}
</div>
<script>
    var vmAuditLoading = new Vue({
        el:'#logistics_index',
        data:{
            member_category:'',
            tradeChildList:[],
            id:'',
            member:{},
            memberInfo:{},
            supplement:{
                "trade_name":'',
                "budget":'',
                "shipment":'',
                'line':'',
                "service_content":''
            },
            show:true,
            advertisingEight:{}
        },
        methods:{
            getTradeChildList:function(){
                var el = this
                var postData = {
                    "trade_id":el.memberInfo.member_category
                }
                AjaxPost(postData,'/index/trade/getTradeChildByWhere').then((response=>{
                    var itemList = [];
                    $.each(response.result,function (i,o) {
                        itemList[o.id] = o.name
                    })
                    el.tradeChildList = itemList
                    console.log(response)

                }))
            },
            getMemberAllInfo:function () {
                var el = this;
                var postData = {
                    'id':el.id,
                }
                AjaxPost(postData,'/index/member/getMemberConsignorById').then((response)=>{
                    console.log(response)
                    var member = response.result
                    var memberInfo = member.memberInfo
                    var supplement = member.consignorReplenish
                    if(supplement != null){
                        el.supplement = supplement
                    }
                    el.member = member
                    el.memberInfo = memberInfo

                    el.show = true
                })
            },
            //获取首页显示广告七
            getAdvertisingEight:function () {
                var el = this
                var postData = {
                    'id':10,
                }
                AjaxPost(postData,'/index/index/getAdvertisingLimitList').then((response)=>{
                    console.log(response)
                    if(response.status==1){
                        if(response.result){
                            el.advertisingEight = response.result
                        }
                    }
                })
            },

        },
        mounted(){
            this.$nextTick(function () {
                if(localStorage.getItem("memberId") != null){
                    this.id = localStorage.getItem("memberId");
                    this.getMemberAllInfo();
                }
                this.getAdvertisingEight()
            })
        },
        created(){
            console.log(localStorage.getItem("memberId"));
        }
    })
</script>